package com.ly.mpayment.core.util;


import org.apache.log4j.Logger;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;


/**
 * 会员定时器清楚类
 * 
 *
 */
@Component("taskJob")
public class TimerVip {
	Logger logger = Logger.getLogger(TimerVip.class);
	/**
	 * 每天23:59检查更新
	 */
	@Scheduled(cron = "0 59 23 * * ?")
	public void execute() {
		logger.info("timer--------------->:开始执行定时器");
//			boolean result = false;
//			for (Parents pa : pas) {
//				pa.setVip(false);// 会员过期
//				this.parentsdao.updateParents(pa);
//				result = true;
		logger.info("timer--------------->:会员失效更新成功");
	}

}
